import yaml

from paths_manager import bank_system_data_yaml


def load_yaml_file(filepath):
    with open(file=filepath, mode='r', encoding='utf-8') as f:
        content = yaml.load(f, Loader=yaml.FullLoader)
        return content

def write_yaml(filepath, content):
    with open(file=filepath, mode='w', encoding='utf-8') as f:
        yaml.dump(content, f, Dumper=yaml.Dumper)

if __name__ == '__main__':
    print(load_yaml_file(bank_system_data_yaml))
